import request from '@/utils/request';

const API = {
  List: 'admin/category/list',
  Dish_URL: 'admin/dish/page',
  LOGOUT_URL: 'admin/acl/index/logout',
};
 
// 菜品分类
export const  getList= () => {
  return request.get(API.List);
};

// 获取用户信息
export const getdish = (data) => {
  return request.get(API.Dish_URL,{ params: data });
};

// 退出登录
export const reqLogout = () => {
  return request.post(API.LOGOUT_URL);
};
